
md5anim {
	name "a_slide"
	animationfile "robot/hq_slide.md5anim"
}


model {
	name "m_pelare1"
	modelfile "objects/pelare1.lwo"
	materials {
		glow {
			color glow
			shader "shr_yfade"
			blend 1
		}
		Default {
			color stone
			shader "shr_yfade"
			blend 1
		}
	}
}

model {
	name "m_pelare2"
	modelfile "objects/pelare2.lwo"
	materials {
		glow {
			color glow
			shader "shr_yfade"
			blend 1
		}
		Default {
			color stone
			shader "shr_yfade"
			blend 1
		}
	}
}

model {
	name "m_pelare4"
	modelfile "objects/pelare4.lwo"
	materials {
		glow {
			color glow
			shader "shr_yfade"
			blend 1
		}
		Default {
			color stone
			shader "shr_yfade"
			blend 1
		}
	}
}


// affes extraobjekt ////////////////////////////////////////////////

model {
	name "prim_tower-001-glow"
	modelfile "objects/prim_tower-001-glow.lwo"
	materials {
		glow {
			color glow
		}
	}
}

model {
	name "prim_tower-001-tower"
	modelfile "objects/prim_tower-001-tower.lwo"
	materials {
		Default {
			color stone
		}
	}
}

model {
	name "prim_tower-001-beam"
	modelfile "objects/prim_tower-001-beam.lwo"
	materials {
		beam {
			color slide_pillar_beam
			blend 1
			zwrite 0
		}
	}

}

///////////////////////////////////////////////////

group__ {
	name "jump_to_slide"

	scene {
		name "s_jump_to_slide"
		file "scenes/jump_to_slide_v008.lws"
		timeoffset 0.52
	}

	camera {
		prio 10
		transform "s_jump_to_slide.camera"
		nearplane 0.1
		fov 30
	}

	destructoroad {
		sceneobj "s_jump_to_slide"
		lwobject "slide"
		numsegs 800
		cubewidth 1.0
		cubeheight 0.5
		accamount 10.0
		destructoffset 10.0
		colordyncube slide_roaddyn
		colorfixcube slide_roadfix
	}


	bones {
	    mesh "m_robot_md5mesh"
	    shadermesh "m_robot_mesh"
		layer0 "a_wakeup" 0 1
		layer1 "a_slide" 0 "s_jump_to_slide.slideblend"

		//layer1 "a_fall" 0 "s_landing.fallblend"
		//layer2 "a_run" "land.localtime" "s_landing.runblend"
		scale 0.1
		rotation (-0.25 -0.25 0)
		transform "s_jump_to_slide.gubbe"
	}
}

group {
	name "slide1"

	scene {
		prio 0
		name "s_slide1"
		file "scenes/8_slide005-002_v003.lws"
	}

	group {
		camera {
			prio 10
			starttime 0
			endtime 25.75
			name "cam_slide1"
			transform "s_slide1.camera"
			nearplane 0.1
			farplane 10000
			fov 45
		}

		camera {
			prio 10
			starttime 25.75
			name "cam_slide1_end"
			transform "s_slide1.camera_end"
			nearplane 0.1
			farplane 10000
			fov 45
		}
	}

	destructoroad {
		sceneobj "s_slide1"
		lwobject "slide"
		numsegs 800
		cubewidth 1.0
		cubeheight 0.5
		accamount 10.0
		destructoffset 0.2
		colordyncube slide_roaddyn
		colorfixcube slide_roadfix
	}

	linemesh {
		meshfile "objects/buckyball-sub18_wire.lwo"
		transform "s_slide1.slide"
		color background_linemesh
		numtravelers 100
	}

	bones {
		name "b_slide_robot"
	    mesh "m_robot_md5mesh"
	    shadermesh "m_robot_mesh"
		layer0 "a_slide" "globaltimer.localtime" 1
		scale 0.1
		rotation (-0.25 -0.25 0)
		transform "s_slide1.slide"
	}

	particles {
	         //passive
	         prio 9999
	         name "particles1"
	         texture "particletexture"
	         maxparticles 1000
	         particlespersec 400.0
	         size 0.2
	         // camera matrix to use when rendering
	         transform "cam_slide1.transform"
	         extratransform "s_slide1.slide"
	         blendinmod 0.3
	         attractors__ {
	                   gravity {
	                            force (0.0 0.0 0.0)
	                    }
	         }
	         jointemitter {
	         		bones "b_slide_robot"
	         		animseq "a_slide"
	         		joint "l_foot"
	                 //positionmodifer "road1.Road1"
	                 position (0.0 0.0 -50.0)
	                 basevelocity (0.0 1.0 -8.0)
	                 velmodifier (1.0 0.5 1.0)
	                 color slide_sparks
	                 lifetime 0.2
	                 lifetimemodifer 0.1
	                 rotspeed 0.0
	                 rotspeedmodifier 0.0
	                 posmodifier (0.1 0.1 0.1)
	         }
	}


	particles {
	         //passive
	         prio 9999
	         name "particles1"
	         texture "particletexture"
	         maxparticles 1000
	         particlespersec 400.0
	         blendinmod 0.3
	         size 0.2
	         // camera matrix to use when rendering
	         transform "cam_slide1.transform"
	         extratransform "s_slide1.slide"
	         attractors__ {
	                   gravity {
	                            force (0.0 -10.0 0.0)
	                    }
	         }
	         jointemitter {
	         		bones "b_slide_robot"
	         		animseq "a_slide"
	         		joint "r_foot"
	                 //positionmodifer "road1.Road1"
	                 position (0.0 0.0 -50.0)
	                 basevelocity (0.0 1.0 -8.0)
	                 velmodifier (1.0 0.5 1.0)
	                 color slide_sparks
	                 lifetime 0.2
	                 lifetimemodifer 0.1
	                 rotspeed 0.0
	                 rotspeedmodifier 0.0
	                 posmodifier (0.1 0.1 0.1)
	         }
	}

	object {
		model "m_pelare1"
		transform "s_slide1.pelare1"
	}

	object {
		model "m_pelare2"
		transform "s_slide1.pelare2"
	}

	object {
		model "m_pelare4"
		transform "s_slide1.pelare4"
	}

	object {
		model "prim_tower-001-tower"
		transform "s_slide1.prim_tower-001-tower"
	}

	object {
		model "prim_tower-001-glow"
		transform "s_slide1.prim_tower-001-glow"
	}
	
	object {
		model "prim_tower-001-beam"
		transform "s_slide1.prim_tower-001-beam"
	}	


	linemesh {
		meshfile "objects/prim_tower-001-beam_wire.lwo"
		transform "s_slide1.prim_tower-001-beam_wire"
		color slide_pillar_wire
	}


	linemesh {
		meshfile "objects/cna_symbol-002b_wire.lwo"
		transform "s_slide1.cna_symbol-002b_wire"
		color lineglow
	}

	picture {
		prio 20000
		start (0 0)
		size (640 480)
		color white
		alphacontrol "s_slide1.whiteout"
	}
}
